/**
 * User: ct/512799311@qq.com
 * Date: 2019-0-09
 *
 */


const path = require('path');
//const webpack = require('webpack');

module.exports = {
    entry: {
      //  "index":"./src/index.js",s
        "ecsc":"./src/index.js",
    },
    devServer:{
        contentBase:'./dist',
        hot: true
    },
    output:{
        filename:'[name].js',
        path:path.resolve(__dirname,'dist')
    },
    plugins:[
      //  new webpack.HotModuleReplacementPlugin()
    ],
    module:{
        rules:[
            {
                test:/\.css$/,
                use:[
                    'style-loader',
                    'css-loader'
                ]
            },
            {
                test:/\.(png|jpg|gif|jpeg)$/,
                loader:'url-loader?limit=2048'
            }
        ]
    }
};